* {
  margin: 0;
  padding: 0; }

#bg {
  width: 100vw;
  height: 100vh;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background-color: gainsboro;
  padding: 2vh 2vw;
  overflow: hidden;
  position: relative; }
  #bg #bg1 {
    width: 95vw;
    height: 95vh;
    background: transparent; }
    #bg #bg1 .topl {
      height: 24vh;
      width: 46vw;
      float: left;
      background-color: lightskyblue;
      text-align: center;
      line-height: 24vh;
      font-size: 1.625rem;
      color: darkslategray; }
      #bg #bg1 .topl #Num {
        font-size: 2rem;
        font-weight: bold;
        color: white;
        vertical-align: bottom; }
    #bg #bg1 .topr {
      height: 24vh;
      width: 46vw;
      float: right;
      background-color: #BFAFA0;
      font-size: 1rem;
      color: darkslategrey;
      -webkit-box-sizing: border-box;
              box-sizing: border-box;
      padding-top: 2vh;
      text-align: center; }
      #bg #bg1 .topr #random {
        margin-top: 4px;
        width: 100%;
        height: 16vh;
        background: transparent;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
            -ms-flex-pack: center;
                justify-content: center;
        -webkit-flex-wrap: wrap;
            -ms-flex-wrap: wrap;
                flex-wrap: wrap; }
        #bg #bg1 .topr #random .num {
          color: white;
          display: inline-block;
          margin-left: 0.125rem;
          font-weight: 600;
          width: 1.15rem;
          height: 1.15rem;
          border: 1px solid #2F4F4F;
          border-radius: 10px;
          background: transparent;
          font-size: 0.95rem;
          text-align: center;
          line-height: 1.1rem;
          -webkit-box-shadow: #2F4F4F 2px 2px;
                  box-shadow: #2F4F4F 2px 2px; }
    #bg #bg1 #gamebox {
      width: 100%;
      height: 70vh;
      background: #d6c5b4;
      margin-top: 2.1vh;
      display: -webkit-box;
      display: -webkit-flex;
      display: -ms-flexbox;
      display: flex;
      -webkit-flex-wrap: wrap;
          -ms-flex-wrap: wrap;
              flex-wrap: wrap;
      -webkit-box-pack: center;
      -webkit-justify-content: center;
          -ms-flex-pack: center;
              justify-content: center;
      -webkit-box-sizing: border-box;
              box-sizing: border-box;
      padding: 2vh 0; }
      #bg #bg1 #gamebox button {
        font-size: 1.5rem;
        font-weight: bold;
        color: black;
        margin: 0 0.25rem;
        display: inline-block;
        border-radius: 4px;
        border: none;
        -webkit-appearance: none;
           -moz-appearance: none;
                appearance: none;
        background: ghostwhite;
        width: 20vw;
        height: 12vh; }
      #bg #bg1 #gamebox .times {
        display: inline-block;
        font-weight: bold;
        opacity: 0.6;
        width: 20vw;
        height: 12vh;
        margin: 0 0.25rem;
        font-size: 10vh;
        color: black;
        text-align: center;
        line-height: 12vh; }
      #bg #bg1 #gamebox #times1 {
        text-align: right;
        padding-right: 0.1rem;
        -webkit-box-sizing: border-box;
                box-sizing: border-box; }
      #bg #bg1 #gamebox #times2 {
        text-align: left;
        padding-left: 0.1rem;
        -webkit-box-sizing: border-box;
                box-sizing: border-box; }
  #bg #cover {
    width: 100vw;
    height: 100vh;
    font-size: 5.5rem;
    text-align: center;
    line-height: 100vh;
    position: absolute;
    top: 0;
    left: 100vw;
    z-index: 10;
    background: mediumseagreen;
    -webkit-transition: all 0.35s;
    transition: all 0.35s;
    color: white; }
  #bg #gameStart {
    width: 100vw;
    height: 100vh;
    background: dodgerblue;
    position: absolute;
    top: 0;
    left: 0vw; }
    #bg #gameStart p {
      color: white;
      font-weight: bold;
      font-size: 2.5rem;
      text-align: center;
      line-height: 40vh;
      width: 100vw;
      height: 40vh; }
    #bg #gameStart div {
      width: 100vw;
      height: 60vh;
      display: -webkit-box;
      display: -webkit-flex;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -webkit-flex-direction: column;
          -ms-flex-direction: column;
              flex-direction: column;
      -webkit-justify-content: space-around;
          -ms-flex-pack: distribute;
              justify-content: space-around;
      -webkit-box-align: center;
      -webkit-align-items: center;
          -ms-flex-align: center;
              align-items: center; }
      #bg #gameStart div button {
        font-size: 1.2rem;
        color: dodgerblue;
        font-weight: bold;
        -webkit-appearance: none;
           -moz-appearance: none;
                appearance: none;
        display: block;
        width: 7.5rem;
        height: 4rem;
        border: 2px solid white;
        border-radius: 10px;
        background-color: whitesmoke; }
      #bg #gameStart div button:last-of-type {
        margin-bottom: 20vh; }
  #bg #gameOver {
    width: 100vw;
    height: 100vh;
    background: mediumseagreen;
    position: absolute;
    top: 0;
    left: 100vw;
    z-index: 11; }
    #bg #gameOver p {
      color: white;
      font-weight: bold;
      font-size: 2.5rem;
      text-align: center;
      line-height: 40vh;
      width: 100vw;
      height: 40vh; }
    #bg #gameOver div {
      width: 100vw;
      height: 60vh;
      display: -webkit-box;
      display: -webkit-flex;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -webkit-flex-direction: column;
          -ms-flex-direction: column;
              flex-direction: column;
      -webkit-justify-content: space-around;
          -ms-flex-pack: distribute;
              justify-content: space-around;
      -webkit-box-align: center;
      -webkit-align-items: center;
          -ms-flex-align: center;
              align-items: center; }
      #bg #gameOver div button {
        font-size: 1.2rem;
        color: whitesmoke;
        font-weight: bold;
        -webkit-appearance: none;
           -moz-appearance: none;
                appearance: none;
        display: block;
        width: 7.5rem;
        height: 4rem;
        border: 2px solid white;
        border-radius: 10px;
        background-color: lightseagreen; }
      #bg #gameOver div button:last-of-type {
        margin-bottom: 20vh; }

.clear {
  clear: both; }

.clearfix::after {
  content: "";
  display: block;
  clear: both; }
